<?php

namespace app\job;

use app\process\CalFeature;
use app\queue\Queue;
use think\facade\Log;

class CompareFeatureSub extends Queue{

    protected function execute($data): bool {
        //$time=microtime(true);
        $_cal=new CalFeature();
        $params=json_decode($data['params'],true);
        $_cal->compare_task($params['task'],$params['score'],$params['feature'],$params['log_id'],$params['main_id'],$params['sub_id'],$params['photo_id']);
        return true;
    }
}